package com.triadsystems.cashweb.modelo.persistencia.entidades;

import java.io.Serializable;

public abstract class ValueObject implements Serializable {  
	  
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public abstract void setEntityId(Long entityId);  
  
    public abstract Long getEntityId();  
	
	@Override
	public boolean equals(Object obj) {
		return this.getEntityId().equals( ((ValueObject) 
				obj).getEntityId() ) ;
	}
	
	@Override
	public int hashCode() {
		return super.hashCode();
	}
}